<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>薪资想过万，代码敲三遍</title>
		<link rel="stylesheet" href="./bootstrap/bootstrap-icons.css">
		<link rel="stylesheet" href="./bootstrap/bootstrap.min.css">
		<link rel="stylesheet" href="./bootstrap/bootstrap.min.js">
		<style>
			#myToast {
				width: 200px;
				height: 50px;
				background-color: pink;
				line-height: 50px;
				position: fixed;
				left: 50%;
				transform: translateX(-50%);
				text-align: center;
			}
		</style>
    </head>
    <body>
        <div id="myToast">我是提示</div>
        <script>
			const myToast = document.querySelector('myToast')
			const toast = new bootstrap.Toast(myToast,{delay:2000})
			toast.show()
		</script>
    </body>
</html>